package com.coding365.service.user.rpc;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "lagou-service-code")
public interface CodeFeignClient {

    //调⽤的请求路径
    @GetMapping("/validate/{email}/{code}")
    Integer validateCode(@PathVariable(value = "email") String email, @PathVariable(value = "code") String code);
}
